/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmVisa extends BasicModel<PmVisa> {
  createDate?: string; // 上传时间
  name?: string; // 项目名称
  operator?: string; // 上传人
  istemporary?: number; // 签证类型
  projectcode?: string; // 项目编号
  fileid?: string; // fileid
  describe?: string; // 签证描述
  scenefile?: string; // scenefile
}

export const pmVisaList = (params?: PmVisa | any) =>
  defHttp.get<PmVisa>({ url: adminPath + '/design/visa/pmVisa/list', params });

export const pmVisaListData = (params?: PmVisa | any) =>
  defHttp.post<Page<PmVisa>>({ url: adminPath + '/design/visa/pmVisa/listData', params });

export const pmVisaForm = (params?: PmVisa | any) =>
  defHttp.get<PmVisa>({ url: adminPath + '/design/visa/pmVisa/form', params });

export const pmVisaSave = (params?: any, data?: PmVisa | any) =>
  defHttp.postJson<PmVisa>({ url: adminPath + '/design/visa/pmVisa/save', params, data });

export const pmVisaDelete = (params?: PmVisa | any) =>
  defHttp.get<PmVisa>({ url: adminPath + '/design/visa/pmVisa/delete', params });
